<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>24. 认识原子组</title>
    </head>
    <body>
    </body>
    <script>
        /*
        * 
        * 
        **/

let hd=`
     <h1>houdunren</h1>
<h2>hdcms</h2>
`
// let reg=/<(h[1-6])>[\s\S]*<\/\1>/gi;
let reg=/<(h[1-6])>([\s\S]*)<\/\1>/i;
console.log(hd.match(reg))
    </script>
</html>
